package com.bawei.model;

import java.util.ArrayList;
import java.util.List;

public class ProviderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProviderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGCodeIsNull() {
            addCriterion("g_code is null");
            return (Criteria) this;
        }

        public Criteria andGCodeIsNotNull() {
            addCriterion("g_code is not null");
            return (Criteria) this;
        }

        public Criteria andGCodeEqualTo(String value) {
            addCriterion("g_code =", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeNotEqualTo(String value) {
            addCriterion("g_code <>", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeGreaterThan(String value) {
            addCriterion("g_code >", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeGreaterThanOrEqualTo(String value) {
            addCriterion("g_code >=", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeLessThan(String value) {
            addCriterion("g_code <", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeLessThanOrEqualTo(String value) {
            addCriterion("g_code <=", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeLike(String value) {
            addCriterion("g_code like", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeNotLike(String value) {
            addCriterion("g_code not like", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeIn(List<String> values) {
            addCriterion("g_code in", values, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeNotIn(List<String> values) {
            addCriterion("g_code not in", values, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeBetween(String value1, String value2) {
            addCriterion("g_code between", value1, value2, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeNotBetween(String value1, String value2) {
            addCriterion("g_code not between", value1, value2, "gCode");
            return (Criteria) this;
        }

        public Criteria andGNameIsNull() {
            addCriterion("g_name is null");
            return (Criteria) this;
        }

        public Criteria andGNameIsNotNull() {
            addCriterion("g_name is not null");
            return (Criteria) this;
        }

        public Criteria andGNameEqualTo(String value) {
            addCriterion("g_name =", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameNotEqualTo(String value) {
            addCriterion("g_name <>", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameGreaterThan(String value) {
            addCriterion("g_name >", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameGreaterThanOrEqualTo(String value) {
            addCriterion("g_name >=", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameLessThan(String value) {
            addCriterion("g_name <", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameLessThanOrEqualTo(String value) {
            addCriterion("g_name <=", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameLike(String value) {
            addCriterion("g_name like", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameNotLike(String value) {
            addCriterion("g_name not like", value, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameIn(List<String> values) {
            addCriterion("g_name in", values, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameNotIn(List<String> values) {
            addCriterion("g_name not in", values, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameBetween(String value1, String value2) {
            addCriterion("g_name between", value1, value2, "gName");
            return (Criteria) this;
        }

        public Criteria andGNameNotBetween(String value1, String value2) {
            addCriterion("g_name not between", value1, value2, "gName");
            return (Criteria) this;
        }

        public Criteria andGTelIsNull() {
            addCriterion("g_tel is null");
            return (Criteria) this;
        }

        public Criteria andGTelIsNotNull() {
            addCriterion("g_tel is not null");
            return (Criteria) this;
        }

        public Criteria andGTelEqualTo(String value) {
            addCriterion("g_tel =", value, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelNotEqualTo(String value) {
            addCriterion("g_tel <>", value, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelGreaterThan(String value) {
            addCriterion("g_tel >", value, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelGreaterThanOrEqualTo(String value) {
            addCriterion("g_tel >=", value, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelLessThan(String value) {
            addCriterion("g_tel <", value, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelLessThanOrEqualTo(String value) {
            addCriterion("g_tel <=", value, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelLike(String value) {
            addCriterion("g_tel like", value, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelNotLike(String value) {
            addCriterion("g_tel not like", value, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelIn(List<String> values) {
            addCriterion("g_tel in", values, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelNotIn(List<String> values) {
            addCriterion("g_tel not in", values, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelBetween(String value1, String value2) {
            addCriterion("g_tel between", value1, value2, "gTel");
            return (Criteria) this;
        }

        public Criteria andGTelNotBetween(String value1, String value2) {
            addCriterion("g_tel not between", value1, value2, "gTel");
            return (Criteria) this;
        }

        public Criteria andGAdrIsNull() {
            addCriterion("g_adr is null");
            return (Criteria) this;
        }

        public Criteria andGAdrIsNotNull() {
            addCriterion("g_adr is not null");
            return (Criteria) this;
        }

        public Criteria andGAdrEqualTo(String value) {
            addCriterion("g_adr =", value, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrNotEqualTo(String value) {
            addCriterion("g_adr <>", value, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrGreaterThan(String value) {
            addCriterion("g_adr >", value, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrGreaterThanOrEqualTo(String value) {
            addCriterion("g_adr >=", value, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrLessThan(String value) {
            addCriterion("g_adr <", value, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrLessThanOrEqualTo(String value) {
            addCriterion("g_adr <=", value, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrLike(String value) {
            addCriterion("g_adr like", value, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrNotLike(String value) {
            addCriterion("g_adr not like", value, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrIn(List<String> values) {
            addCriterion("g_adr in", values, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrNotIn(List<String> values) {
            addCriterion("g_adr not in", values, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrBetween(String value1, String value2) {
            addCriterion("g_adr between", value1, value2, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGAdrNotBetween(String value1, String value2) {
            addCriterion("g_adr not between", value1, value2, "gAdr");
            return (Criteria) this;
        }

        public Criteria andGEmailIsNull() {
            addCriterion("g_email is null");
            return (Criteria) this;
        }

        public Criteria andGEmailIsNotNull() {
            addCriterion("g_email is not null");
            return (Criteria) this;
        }

        public Criteria andGEmailEqualTo(String value) {
            addCriterion("g_email =", value, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailNotEqualTo(String value) {
            addCriterion("g_email <>", value, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailGreaterThan(String value) {
            addCriterion("g_email >", value, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailGreaterThanOrEqualTo(String value) {
            addCriterion("g_email >=", value, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailLessThan(String value) {
            addCriterion("g_email <", value, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailLessThanOrEqualTo(String value) {
            addCriterion("g_email <=", value, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailLike(String value) {
            addCriterion("g_email like", value, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailNotLike(String value) {
            addCriterion("g_email not like", value, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailIn(List<String> values) {
            addCriterion("g_email in", values, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailNotIn(List<String> values) {
            addCriterion("g_email not in", values, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailBetween(String value1, String value2) {
            addCriterion("g_email between", value1, value2, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGEmailNotBetween(String value1, String value2) {
            addCriterion("g_email not between", value1, value2, "gEmail");
            return (Criteria) this;
        }

        public Criteria andGStatusIsNull() {
            addCriterion("g_status is null");
            return (Criteria) this;
        }

        public Criteria andGStatusIsNotNull() {
            addCriterion("g_status is not null");
            return (Criteria) this;
        }

        public Criteria andGStatusEqualTo(Byte value) {
            addCriterion("g_status =", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusNotEqualTo(Byte value) {
            addCriterion("g_status <>", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusGreaterThan(Byte value) {
            addCriterion("g_status >", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("g_status >=", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusLessThan(Byte value) {
            addCriterion("g_status <", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusLessThanOrEqualTo(Byte value) {
            addCriterion("g_status <=", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusIn(List<Byte> values) {
            addCriterion("g_status in", values, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusNotIn(List<Byte> values) {
            addCriterion("g_status not in", values, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusBetween(Byte value1, Byte value2) {
            addCriterion("g_status between", value1, value2, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("g_status not between", value1, value2, "gStatus");
            return (Criteria) this;
        }

        public Criteria andStand1IsNull() {
            addCriterion("stand1 is null");
            return (Criteria) this;
        }

        public Criteria andStand1IsNotNull() {
            addCriterion("stand1 is not null");
            return (Criteria) this;
        }

        public Criteria andStand1EqualTo(String value) {
            addCriterion("stand1 =", value, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1NotEqualTo(String value) {
            addCriterion("stand1 <>", value, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1GreaterThan(String value) {
            addCriterion("stand1 >", value, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1GreaterThanOrEqualTo(String value) {
            addCriterion("stand1 >=", value, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1LessThan(String value) {
            addCriterion("stand1 <", value, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1LessThanOrEqualTo(String value) {
            addCriterion("stand1 <=", value, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1Like(String value) {
            addCriterion("stand1 like", value, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1NotLike(String value) {
            addCriterion("stand1 not like", value, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1In(List<String> values) {
            addCriterion("stand1 in", values, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1NotIn(List<String> values) {
            addCriterion("stand1 not in", values, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1Between(String value1, String value2) {
            addCriterion("stand1 between", value1, value2, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand1NotBetween(String value1, String value2) {
            addCriterion("stand1 not between", value1, value2, "stand1");
            return (Criteria) this;
        }

        public Criteria andStand2IsNull() {
            addCriterion("stand2 is null");
            return (Criteria) this;
        }

        public Criteria andStand2IsNotNull() {
            addCriterion("stand2 is not null");
            return (Criteria) this;
        }

        public Criteria andStand2EqualTo(String value) {
            addCriterion("stand2 =", value, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2NotEqualTo(String value) {
            addCriterion("stand2 <>", value, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2GreaterThan(String value) {
            addCriterion("stand2 >", value, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2GreaterThanOrEqualTo(String value) {
            addCriterion("stand2 >=", value, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2LessThan(String value) {
            addCriterion("stand2 <", value, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2LessThanOrEqualTo(String value) {
            addCriterion("stand2 <=", value, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2Like(String value) {
            addCriterion("stand2 like", value, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2NotLike(String value) {
            addCriterion("stand2 not like", value, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2In(List<String> values) {
            addCriterion("stand2 in", values, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2NotIn(List<String> values) {
            addCriterion("stand2 not in", values, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2Between(String value1, String value2) {
            addCriterion("stand2 between", value1, value2, "stand2");
            return (Criteria) this;
        }

        public Criteria andStand2NotBetween(String value1, String value2) {
            addCriterion("stand2 not between", value1, value2, "stand2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}